Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added open recent functionality #551

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Added open recent functionality #551

merged 3 commits into from
Oct 15, 2024

Conversation

sebastian-swob
Copy link
Collaborator

No description provided.

@sebastian-swob sebastian-swob linked an issue Oct 15, 2024 that may be closed by this pull request
@@ -73,6 +73,7 @@ def __init__(self, parent, projectFolder, jsonPath, loadValue, logger):
self.projectFolder = projectFolder

self.diagramName = os.path.split(self.projectFolder)[-1] + ".json"
self.diagramPath = os.path.join(self.projectFolder, self.diagramName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's discuss this refactoring choice, as it may lead to incremental improvements.

project = _ccl.value(maybeCancelled)

self._resetEditor(project)

if isinstance(project, _prj.MigrateProject):
self.editor.save()

def openRecentFile(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like duplication of the usual functionality when opening another project.
Can this be integrated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not exactly, we can defintely extract message box

trnsysGUI/gui.py Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Oct 15, 2024

@ahobeost ahobeost merged commit c288975 into master Oct 15, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

open recent projects
2 participants